Music Object Common Parameters


 AudioDevicePriority0to3

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   3 
 Minimum   0 
 Constrained   no 
 

The AudioDevicePriority0to3 parameter is an integer that indicates the degree to which sonified content desires the player's underlying audio engine to be engaged (or, in some cases, not to be engaged).


NOTES
 AutostartBOOL

 
 CATEGORY   Parameter 
 Type   boolean 
 Values   true 
 false 
 

The AutostartBOOL parameter is a boolean that indicates if a player should start playing a file immediately once that file has finished loading.


 BankNumber0to2

 
 CATEGORY   Parameter 
 Type   integer 
 Values   0 = GM Bank 
 1 = Special Bank 
 2 = User Bank 
 Constrained   no 
 

The Beatnik soundbank contains 2 banks, each with a full 128 instrument sounds and a percussion set. There is also an additional bank, called the user bank, which is available for composers to define their own custom instruments to include in their RMF compositions.

The banks are as follows...

Bank# Bank Name Description
0 GM bank A General MIDI soundbank modeled to be closely compatible with established GM soundbanks such as the arguably industry-standard Roland SoundCanvas GM soundset. Content which has been authored for a GM sound module should be flattered by the Beatnik GM bank.
1 Special bank The Special bank contains very cool textures, some of which stand in as alternatives to their less adventurous GM counterparts in bank 0. Often a program number in the GM bank will have an instrument which is mirrored at the same location in the Special bank, except that the Special bank version will have a refreshingly different slant on it. This is convenient and makes it quite easy to change the feel of a composition merely by changing a bank select or two in the sequence, while still having the mix make musical sense.
2 User bank The User bank is where composers of RMF content can place their custom instruments. Their are no instruments in the User bank of the Beatnik soundbank and so this space is open for RMF composers. The custom instruments in the User bank are usually included in the RMF file which is exported from the Beatnik Editor.

For the list of instrument sounds contained in the various banks, consult the interactive instrument list.

 ChannelInstrumentMode0to3

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   3 
 Minimum   0 
 Constrained   no 
 

The Beatnik Player offers 4 different channel instrument modes. The Music Object API may be used to manage a channel's instrument mode using the setChannelInstrumentMode and getChannelInstrumentMode instance methods of the Channels extension.

For a detailed description of the available channel instrument modes, consult the section Important Concepts: Channel Instrument Mode.

 ControllerNumber0to127

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   127 
 Minimum   0 
 Constrained   no 
 

See Appendix E: Supported MIDI Controllers.


 ControllerValue0to127

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   127 
 Minimum   0 
 Constrained   yes 
 

See Appendix E: Supported MIDI Controllers.


 EmbedLineSTR

 
 CATEGORY   Parameter 
 Type   string 
 

EmbedLineSTR is a string parameter used to pass an EMBED tag to the magicEmbed method. This string is then interpreted by the magicEmbed method before actually being written into the HTML document. See the magicEmbed method for further detail.


 FadeTimeMsINT

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   no upper limit 
 Minimum   0 
 Constrained   no 
 

FadeTimeMsINT is an integer value indicating the amount of time over which a volume fade is to occur. It is measured in units of a millisecond (1/1000th of a second). Methods that take FadeTimeMsINT as a parameter can also typically take the FadeBOOL parameter in place of it.


 FadeBOOL

 
 CATEGORY   Parameter 
 Type   boolean 
 Values   true 
 false 
 

FadeBOOL is a boolean parameter indicating whether a volume fade should occur or not. A value of false indicates that no volume fade should occur, and a value of true indicates that a volume fade of 1000 milliseconds (1 second) should occur. Methods that take FadeBOOL as a parameter can also typically take the FadeTimeMsINT parameter in place of it. This allows more precise control over volume fades.


 FileUrlSTR

 
 CATEGORY   Parameter 
 Type   string 
 

The FileUrlSTR parameter is a string specifying a media resource that may be located on the Internet or on the local system. The syntax for this parameter is exactly the same as the normal syntax used in referring to HTML page media such as images, page links, page backgrounds, etc.

Using a relative URL syntax allows one to author content that will run locally without the user being connected to the Internet - vital for creating portable content that can be run off a removable storage medium such as a ZIP disk, external SCSI hard drive, CD-ROM, etc.

In addition to the established set of protocols - such as "http:", "ftp:", "file:", and others - the Beatnik Player also supports a non-standard "groovoid:" protocol, which allows authors to specify one of the player's built-in Groovoids when using the play method.


 Function

 
 CATEGORY   Parameter 
 Type   function 
 

The Function parameter specifies a user-defined function that will be used to handle a callback from the Beatnik Player. When the function is specified in a method such as onPlay, the function must already be defined in the code, otherwise an undefined function value will be passed to the callback method and the code will not behave correctly. The function should, therefore, be defined ahead in the code before any reference to it is made.


 GroovoidNameSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values   consult the appendix Beatnik Soundbank - Groovoids 
 

 InfoFieldNameSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values 
 (Player 1.0.0 and higher) 
 title 
 performer 
 composer 
 copyright 
 publisher 
 use 
 licensee 
 term 
 expiration 
 notes 
 index 
 Values 
 (Player 1.3.0 and higher) 
 genre 
 subgenre 
 Values 
 (Player 2.1.0 and higher) 
 tempo description 
 original source 
 

InfoFieldNameSTR is a string parameter representing the name of one of the song information fields contained inside an RMF file. Out of all the file types that are supported by the Beatnik Player, only RMF files can contain encrypted song copyright information.



 InstanceCallbackTypeSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values   onAudibleStateChange 
 onLoad 
 onMetaEvent 
 onOutputVolumeChange 
 onPause 
 onPlay 
 onReady 
 onStop 
 

InstanceCallbackTypeSTR is a string parameter representing the name of one of the instance callback types supported by the Music Object API.


 JavaScriptSTR

 
 CATEGORY   Parameter 
 Type   string 
 

JavaScriptSTR is a string parameter which represents a block of JavaScript code. This could be a single JavaScript statement, or a set of statements separated by semicolons.


 LoopCountINT

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   no upper limit 
 Minimum   0 
 Constrained   no 
 

LoopCountINT is an integer value representing the number of times a file is to play through. For example, a value of 1 means that a file will play through only once. This is effectively the same as using false as a value for the LoopingBOOL parameter - playing through only once is in essence the same as not looping. However, using a value higher than 1 will result in the file looping, with as many repititions as is specified in the LoopCountINT parameter. One special case is using a value of 0 for this parameter, which will result in the file looping indefinitely. This is effectively the same as using true as a value for the LoopingBOOL parameter. Methods that can take the LoopCountINT parameter can also typically take the LoopingBOOL parameter in its place.


 LoopingBOOL

 
 CATEGORY   Parameter 
 Type   boolean 
 Values   true 
 false 
 

LoopingBOOL is a boolean value specifying whether or not a file is to be looped by the player. A value of false will result in the file playing only once and then stopping, and a value of true will result in the file looping indefinitely (until it is stopped by the user or a Music Object method such as stop). Methods that can take the LoopingBOOL parameter can also typically take the LoopCountINT parameter in its place.


 MenuItemNameSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values   Copyright 
 Play 
 Pause 
 Stop 
 PlayURL 
 Loud 
 Quiet 
 Mute 
 System 
 Song 
 Help 
 About 
 News 
 

The MenuItemNameSTR parameter is a string parameter used by the doMenuItem method to emulate the user selection of one of the Beatnik Player's available pop-up menu options. This is an alternative way to execute some of the player's functionality. The possible values for the MenuItemNameSTR parameter are denoted in the table to the right.



 MetaEventTypeSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values   GenericText 
 Copyright 
 Lyric 
 Marker 
 CuePoint 
 Unknown 
 

MetaEventTypeSTR is a string parameter representing the name of one of the supported callback types (see the section "Callbacks Supported by the Music Object API").



 MidiChannel0to16

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   16 
 Minimum   0 
 Constrained   no 
 

MIDI channel numbers range from 1 to 16 (with MIDI channel 10 being the percussion channel), but in many cases MIDI channel number 0 acts as a "magical" channel number which indicates that the method should apply to all channels, 1 through 16.

eg. You could set the volume of all channels to maximum by using a statement such as myMusicObject.setController (0,7,127), where the MIDI channel of 0 indicates that controller 7 of each channel should be set to 127. The magical MIDI channel number 0 does not apply to "get" type methods which return a value.
 MidiChannel1to16

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   16 
 Minimum   1 
 Constrained   no 
 

MIDI channel numbers range from 1 to 16, with MIDI channel 10 being the percussion channel.

 MuteStateBOOL

 
 CATEGORY   Parameter 
 Type   boolean 
 Values   true 
 false 
 

MuteStateBOOL is a boolean value representing whether a track, channel, or the global volume is muted or not. A value of true indicates that something is muted, and a value of false indicates that it is not muted. For a clearer understanding of mute and solo states (and how they interact with each other), consult the section Mute and Solo, and How They Interact with Each Other.


 MuteStateSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values   Mute 
 Unmute 
 Toggle 
 Toggle Group 
 

MuteStateSTR is a String value representing whether a track or channel is to be muted or not. A value of Mute indicates that something is to be muted, a value of Unmute indicates that it is to be unmuted, and a value of Toggle indicates that its mute state is to be inverted. For a clearer understanding of mute and solo states (and how they interact with each other), consult the section Mute and Solo, and How They Interact with Each Other.


 NoteDurationMsINT

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   no upper limit 
 Minimum   0 
 Constrained   no 
 

NoteDurationINT is an integer, measured in units of a millisecond (1/1000th of a second), representing the amount of time that a note is to be sustained when using the playNote method.


 NoteNameSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values  Consult the Appendix Note Names and Numbers
 

NoteNameSTR is a string used to represent a valid MIDI note by its symbolic name - a name that can be understood by musicians. The syntax for this string is...

note (C,D,E,F,G,A,B) | optional sharp (#) or flat (b) specifier | octave number

For instance, middle C (C in the 4th octave) is represented by the string value C4. And F sharp in the 6th octave is represented by the string value F#6. And as a final example, D flat in the 3rd octave is represented by the string value Db3. Consult the Appendix Note Names and Numbers for a full listing of MIDI note numbers and their corresponding names. Methods that take NoteNameSTR as a parameter can also take the NoteNumber0to127 parameter in its place.


 NoteNumber0to127

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   127 
 Minimum   0 
 Constrained   no 
 

NoteNumber0to127 is an integer representing a valid MIDI note number ranging from 0 to 127, where 0 represents C-1 (C in octave -1) and 127 represents G9 (G in the 9th octave). Middle C (C in the 4th octave) is represented by the note number 60. Consult the Appendix Note Names and Numbers for a full listing of MIDI note numbers and their corresponding names. Methods that take NoteNumber0to127 as a parameter can also take the NoteNameSTR parameter in its place.


 PanelDisplaySTR

 
 CATEGORY   Parameter 
 Type   string 
 Values   SONG 
 SYSTEM 
 

PanelDisplaySTR is a string parameter representing the type of display for the player's control panel. If the control panel is hidden, then this parameter is essentially meaningless. The value for this property can be set when the player is first embedded in the document by using the DISPLAY attribute. For details on how this parameter affects the look of the player's control panel, consult the Appendix Control Panel Layouts.


 PanelModeSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values   METERS 
 SCOPE 
 COPYRIGHT 
 

PanelModeSTR is a string parameter representing the display mode for the player's control panel. If the control panel is hidden, then this parameter is essentially meaningless. The value for this property can be set when the player is first embedded in the document by using the MODE attribute. For details on how this parameter affects the look of the player's control panel, consult the Appendix Control Panel Layouts.


 ProgramNumber0to255

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   255 
 Minimum   0 
 Constrained   no 
 

For the list of instrument sounds in the Beatnik soundbank, please consult the interactive instrument list.


 ReverbType1to11

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   11 
 Minimum   1 
 Constrained   no 
 

The Beatnik Player offers 11 reverb settings (one of them being a setting for no reverb). The reverb types are specified in the Music Object by using their numbers. The available reverb settings are listed in the table below.

The Music Object API may be used to manage the player's reverb using the Music.setReverbType and Music.getReverbType static methods.

Reverb# Reverb Name Supported
From
Player
Version#
Variable
Send
Level
1 No reverb 1.0 no
2 Igor's Closet 1.0 no
3 Igor's Garage 1.0 no
4 Igor's Acoustic Lab 1.0 no
5 Igor's Cavern 1.0 no
6 Igor's Dungeon 1.0 no
7 Small Reflections 1.0 no
8 Early Reflections * 2.0.0 * yes
9 Basement * 2.0.0 * yes
10 Banquet Hall * 2.0.0 * yes
11 Catacombs * 2.0.0 * yes
NOTES
 SoloStateBOOL

 
 CATEGORY   Parameter 
 Type   boolean 
 Values   true 
 false 
 

SoloStateBOOL is a boolean parameter representing the solo state of a MIDI channel or track in MIDI and RMF files. A value of true indicates that the channel or track is soloed, and a value of false indicates that it is not soloed. For a clearer understanding of mute and solo states (and how they interact with each other), consult the section Mute and Solo, and How They Interact with Each Other.


 SoloStateSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values   Solo 
 Unsolo 
 Toggle 
 Toggle Group 
 

SoloStateSTR is a String value representing whether a track or channel is to be muted or not. A value of Solo indicates that something is to be soloed, a value of Unsolo indicates that it is to be unsoloed, and a value of Toggle indicates that its solo state is to be inverted. For a clearer understanding of mute and solo states (and how they interact with each other), consult the section Mute and Solo, and How They Interact with Each Other.


 SongPositionMsINT

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   Song Length 
 Minimum   0 
 Constrained   yes 
 

SongPositionMsINT is an integer parameter representing a position in time in an RMF or MIDI file, and is measured in units of a millisecond (1/1000th of a second). One can use some simple mathematics to convert a SongPositionMsINT value into a more meaningful bar/beat position inside a song, providing you know the tempo and meter of the song you are dealing with.


 StaticCallbackTypeSTR

 
 CATEGORY   Parameter 
 Type   string 
 Values   onAudioEngagedChange 
 

StaticCallbackTypeSTR is a string parameter representing the name of one of the static callback types supported by the Music Object API.


 TempoBPM0to300

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   300 
 Minimum   0 
 Constrained   yes 
 

TempoBPM0to300 is measured in bpm (beats per minute).


 TrackNumber0to64

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   64 
 Minimum   0 
 Constrained   no 
 

Tracks inside an RMF or MIDI file are numbered starting at 1. The Beatnik Player can handle up to a maximum of 64 tracks. In many cases track number 0 acts as a "magical" track number which indicates that the method should apply to all tracks in the RMF or MIDI composition.

eg. You could mute all tracks of a composition by using a statement such as myMusicObject.setTrackMute (0,true), where the track number of 0 indicates that the setTrackMute method should set the mute state of all tracks in the composition. The magical track number 0 does not apply to "get" type methods which return a value.

 TrackNumber1to64

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   64 
 Minimum   1 
 Constrained   no 
 

Tracks inside an RMF or MIDI file are numbered starting at 1. The Beatnik Player can handle up to a maximum of 64 tracks.


 Velocity0to127

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   127 
 Minimum   0 
 Constrained   yes 
 

Velocity0to127 is a MIDI concept and represents the strength with which a musical note is triggered. Depending on the instrument's definition, velocity quite often translates to the overall volume of the note triggered, but this is not necessarily the case. Instruments are sometimes defined so that filters are controlled by velocity as well, resulting in significantly different sound "colors" at different velocity values.


 Volume0to100

 
 CATEGORY   Parameter 
 Type   integer 
 Maximum   100 
 Minimum   0 
 Constrained   yes 
 

Volume level is a measure a player instance's overall volume and is measured in a range of 0 to 100, where a value of 0 represents silence and a value of 100 represents maximum volume. Volume level can be set using the setVolume method and can be obtained using the getVolume method. Other methods that can affect the current volume level of a player instance are fadeTo and fadeVolume. Volume level is not global and setting the volume level of a player instance does not affect the volume levels of other instances. Volume level is also not to be confused with MIDI controller 7 which can set the volumes of individual MIDI channels in an RMF or MIDI file.